QT       += core gui
QT       += serialport
QT       += charts
QT       += sql
QT       += bluetooth
QT += datavisualization
QT       += multimedia
QT       += multimediawidgets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17
QMAKE_CXXFLAGS += -g1
QMAKE_CXXFLAGS += -O2
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    AnimatedTabWidget/animatedtabwidget.cpp \
    ECG_EEGDataAna/ecg_eegdataana.cpp \
    ECG_EEGDataAna/ecgprocess.cpp \
    ECG_EEGDataCollectAna/login_ecgeeg.cpp \
    HRVAna/arpsdcalculator.cpp \
    HRVAna/cubicspline.cpp \
    HRVAna/histogram.cpp \
    HRVAna/hrv_timecompute.cpp \
    HRVAna/hrvana.cpp \
    HRVAna/hrvas.cpp \
    HRVAna/lombscarglecalculator.cpp \
    HRVAna/splineinterpolator.cpp \
    HotPlot.cpp \
    QtBluetooth/agent.cpp \
    QtBluetooth/controller.cpp \
    QtBluetooth/service.cpp \
    QtBluetooth/socketmessage.cpp \
    SeriaPortWork/serialworker.cpp \
    Utils/bytedatapro.cpp \
    Utils/settingmanager.cpp \
    Utils/settingpro.cpp \
    beans/designdata.cpp \
    beans/designdatabean.cpp \
    beans/userinfobean.cpp \
    binddevice.cpp \
    cglobal.cpp \
    charts/customtimevalueaxis.cpp \
    charts/measurepagecharts.cpp \
    charts/singcustomwave.cpp \
    datacollect_ecg.cpp \
    datacollect_ecgeeg.cpp \
    datacollect_eeg2.cpp \
    datacollectmenu.cpp \
    dll/ecgrwaveextract.cpp \
    dll/iirfilter.cpp \
    help.cpp \
    option.cpp \
    qcustomplot.cpp \
    charts/surfacegraphmodifier.cpp \
    charts/waveformchart.cpp \
    db/mysql.cpp \
    main.cpp \
    menuform.cpp \
    shareAlg/arrayOper/arrayoperation.cpp \
    shareAlg/arrayOper/outlierdetector.cpp \
    shareAlg/arrayOper/replaceoutliers.cpp \
    shareAlg/wavelet/detrendrr.cpp \
    shareAlg/wavelet/wavelet.cpp \
    shareAlg/wavelet/waveletfilter.cpp \
    tableView/tablemodel.cpp \
    tableView/tableviewheader.cpp \
    testhrvalg.cpp

HEADERS += \
    AnimatedTabWidget/animatedtabwidget.h \
    ECG_EEGDataAna/ecg_eegdataana.h \
    ECG_EEGDataAna/ecgprocess.h \
    ECG_EEGDataCollectAna/login_ecgeeg.h \
    HRVAna/arpsdcalculator.h \
    HRVAna/cubicspline.h \
    HRVAna/histogram.h \
    HRVAna/hrv_timecompute.h \
    HRVAna/hrvana.h \
    HRVAna/hrvas.h \
    HRVAna/lombscarglecalculator.h \
    HRVAna/splineinterpolator.h \
    HotPlot.h \
    QtBluetooth/agent.h \
    QtBluetooth/controller.h \
    QtBluetooth/service.h \
    QtBluetooth/socketmessage.h \
    SeriaPortWork/serialworker.h \
    Utils/bytedatapro.h \
    Utils/settingmanager.h \
    Utils/settingpro.h \
    beans/designdata.h \
    beans/designdatabean.h \
    beans/userinfobean.h \
    binddevice.h \
    cglobal.h \
    charts/customtimevalueaxis.h \
    charts/measurepagecharts.h \
    charts/singcustomwave.h \
    datacollect_ecg.h \
    datacollect_ecgeeg.h \
    datacollect_eeg2.h \
    datacollectmenu.h \
    dll/IIRFilterLib.h \
    dll/OSEAECGLib.h \
    dll/ecgrwaveextract.h \
    dll/iirfilter.h \
    help.h \
    option.h \
    qcustomplot.h \
    charts/surfacegraphmodifier.h \
    charts/waveformchart.h \
    db/mysql.h \
    dll/MultiUSBDongleLib.h \
    menuform.h \
    shareAlg/arrayOper/arrayoperation.h \
    shareAlg/arrayOper/outlierdetector.h \
    shareAlg/arrayOper/replaceoutliers.h \
    shareAlg/wavelet/detrendrr.h \
    shareAlg/wavelet/wavelet.h \
    shareAlg/wavelet/waveletfilter.h \
    tableView/tablemodel.h \
    tableView/tableviewheader.h \
    testhrvalg.h

FORMS += \
    ECG_EEGDataAna/ecg_eegdataana.ui \
    ECG_EEGDataAna/ecgprocess.ui \
    ECG_EEGDataCollectAna/login_ecgeeg.ui \
    HRVAna/hrvana.ui \
    HRVAna/hrvas.ui \
    binddevice.ui \
    datacollect_ecg.ui \
    datacollect_ecgeeg.ui \
    datacollect_eeg2.ui \
    datacollectmenu.ui \
    help.ui \
    menuform.ui \
    option.ui \
    testhrvalg.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    resources.qrc

# win32:CONFIG(release, debug|release): LIBS += -L$$PWD/./release/ -lWindows_ShareLib
# else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/./debug/ -lWindows_ShareLib
win32: LIBS += -L$$PWD/dll/ -lWindows_ShareLib
# INCLUDEPATH += $$PWD/dll
# DEPENDPATH += $$PWD/dll




INCLUDEPATH += $$PWD/Eigen

win32: LIBS += -L$$PWD/OpenCV/lib/ -lopencv_world4120d

INCLUDEPATH += $$PWD/opencv2
DEPENDPATH += $$PWD/opencv2
